import { defineStore } from 'pinia'

export const useStore = defineStore('counter', {
  state: () => {
    return { count: 1 }
  },
  getters: {
    countPow2 (state) {
      return state.count ** 2;
    },
  },
  actions: {
    increment () {
      this.count++
    },
  },
})